package com.example.appjava;

/**
 * @author sjw
 * @className ProvinceStatusDTO
 * @date 2021/7/9 16:06
 * @description: TODO
 */
public class ProvinceStatusDTO {
    private String name;
    private String idnum;
    private String status;
    public ProvinceStatusDTO(){}
    public ProvinceStatusDTO(String name, String idnum, Integer status) {
        this.name = name;
        this.idnum = idnum;
        Integer TURNOVER = 2002;
        //省房协对接字典表2：解除，9：正常，-8：暂停执业
        this.status = TURNOVER.equals(status) ? "2" : "9";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdnum() {
        return idnum;
    }

    public void setIdnum(String idnum) {
        this.idnum = idnum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setStatus(Integer status) {
        Integer TURNOVER = 2002;
        this.status = TURNOVER.equals(status) ? "2" : "9";
    }
}
